package com.hn.kiss.modules.sys.shopcommon.validdator;

import com.hn.kiss.modules.sys.shopcommon.util.ParmValidateUtil;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;


/**
 * 自定义身份证校验注解实现
 * @author dnkj011
 *
 */
public class IdNoValidator implements ConstraintValidator<IsIdNo,String>{

	@Override
	public boolean isValid(String arg0, ConstraintValidatorContext arg1) {
		String str = ParmValidateUtil.checkIdNo(arg0);
		if("".equals(str)) {
			return true;
		}
		return false;
	}

}
